<template>
<onekit-page>
<onekit-view onekit-class="container">
	<div is="onekit-template-head" :DATA="`${JSON.stringify({title:'onUserCaptureScreen'})}`"></div>
	<onekit-view onekit-class="page-body">
		<onekit-view onekit-class="page-body-info">
			<onekit-view onekit-class="page-body-title">请进行屏幕截屏</onekit-view>
			<onekit-text onekit-class="page-body-text">截屏事件{{ captured ? "已" : "未" }}触发</onekit-text>
		</onekit-view>
	</onekit-view>
	<div is="onekit-template-foot"></div>
</onekit-view>
</onekit-page></template>
<script>
/* eslint-disable */
import Vue from 'vue';
import onekit_template_0 from '../../../common/head.head.vue';Vue.component('onekit-template-head',onekit_template_0);
import onekit_template_1 from '../../../common/foot.foot.vue';Vue.component('onekit-template-foot',onekit_template_1);
const ONEKIT_JSON= {
  "navigationBarTitleText": "用户截屏事件",
  "usingComponents": {
    
  }
};
const ONEKIT_SJS = {
};
import wx from '../../../../weixin2vue/wx.js';
import Macro from '../../../../weixin2vue/Macro.js';
const {getApp,getCurrentPages} = Macro;
import Page from '../../../../weixin2vue/OnekitPage.js';
import Component from '../../../../weixin2vue/OnekitComponent.js';
export default Page(ONEKIT_JSON,["截屏事件","captured","触发"],ONEKIT_SJS,{
    "onShareAppMessage"(){
      return {
        "title":'用户截屏事件',
        "path":'packageAPI/pages/capture-screen/capture-screen'
};
    },
    "data":{
        "captured":false
},
    "onLoad"(){
      wx.onUserCaptureScreen(()=>{this.setData({
        "captured":true
})});
    }
});

</script>
<style 
 lang="css">
.page-body-text {
  font-size: 20px ;
  font-family: -apple-system-font, Helvetica Neue,Helvetica,sans-serif ;
}
</style>